/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.command.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.behavioral.command.*;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class CommandConf {
    
    @Bean  
    public Lunch lunch(){
    return new Lunch();
    }
    @Bean
    public Dinner dinner(){
    return new Dinner();
    }
    @Bean 
    public MealInvoker mealInvoker(){
    return new MealInvoker(null);
    } 
    @Bean 
    public DinnerCommand dinnerCommand(){ 
    return new DinnerCommand(null);
    }
    @Bean 
    public LunchCommand lunchCommand(){ 
    return new  LunchCommand(null);
    }
    
    
}
